#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2022-11-8 1:02
import datetime
import random
import time

import shortuuid

from lingzhu.tools.get_run_time import get_run_time


def run_for(num):
    for i in range(num):
        data_id = f"{datetime.date.today().strftime('%Y%m%d')}" \
                  f"{shortuuid.ShortUUID(alphabet='1234567890').random(length=6)}" \
                  f"{datetime.datetime.now().strftime('%H%M%S')}"
        mobile_phone = "1" + ''.join(random.choice('0123456789') for i in range(10))
        data_id = f"{datetime.date.today().strftime('%Y%m%d')}" \
                  f"{'%012d' % (i + 1)}"
        print(data_id)


if __name__ == '__main__':
    s_time = time.time()
    run_for(1)
    e_time = time.time()
    get_run_time(e_time, s_time)
